-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Navigation: Try inheriting orientation in setup state. #36778
Conversation
Size Change: +236 B (0%) Total Size: 1.14 MB
ℹ️ View Unchanged
|
This looks like a bug fix to me as the screenshot you have in "Before" looks broken. We can include it in WP 5.9 if this is merged today (Monday). I'll begin backporting merged PRs on Tuesday morning Australian Eastern time 🙂 |
@noisysocks asked me to review/test this to see if it's ready for 5.9. I noticed the branch is a few weeks old, I think the PR probably needs some updates to be ready for 5.9. I tested on a rebased version of the branch and here are a few observations (using Mac OS/Brave):
|
I think it's probably best to aim for 5.9.1 for this, so I've swapped the labels. Appreciate the work here @jasmussen 👍 |
I was about to suggest that this one has been in need of a review for a bit, and is mostly UX buggy, so it's not worth the risk to land at this point. I'll rebase and shepard along instead. |
Can I get a green check on this one? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Screen.Capture.on.2022-01-28.at.10-57-03.mp4
I tested this and it worked well. Minor nit comment left other than that it seems 👍
@@ -271,20 +280,8 @@ $color-control-label-height: 20px; | |||
} | |||
|
|||
&:not(.is-loading) { | |||
// Don't show the preview boxes for an empty nav block, | |||
// but be technically present to help size the empty state. | |||
// Don't show the preview boxes for an empty nav block. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What are the "preview boxes"? Anyway to be more specific here to add clarity?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh good one! That actually suggests this needs a quick look again after the rebase! I'll take a look, thank you!
6697b67
to
c38fded
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested, and it works as expected, with no layout shifting when selecting the block. LGTM.
Alright, as an extension of the change to nav blobs, this makes sense to me to land as is. I'm actually going to remove the backport label, because this one no longer makes sense to backport if we don't also backport the placeholder change. |
Description
The navigation setup state used to have a vertical orientation, relying on an
is-vertical
class. That class has been retired with the flex layout orientation, so this needs a different approach. This PR takes a step towards getting it to work. Before:After:
I suspect the placeholder for the navigation block will need a bit more work, notably around the gray blobs. Feedback time and again have suggested they look like a "loading state", when in fact they are meant to represent an unconfigured block. In that light, I'd like to explore separately to remove those blobs entirely. (In retiring these, it would also remove the layout shift that happens when selecting and deselecting the block!)
How has this been tested?
Insert a navigation block, then test changing the orientation.
Checklist:
*.native.js
files for terms that need renaming or removal).